Skip to content

Fix notebook undefined best in analysis notebook#166

Open
SamuelS0 wants to merge 1 commit intokarpathy:masterfrom
SamuelS0:fix-notebook-undefined-best-var
Open

Fix notebook undefined best in analysis notebook#166
SamuelS0 wants to merge 1 commit intokarpathy:masterfrom
SamuelS0:fix-notebook-undefined-best-var

Conversation

@SamuelS0
Copy link

Line 137 references 'best' on lines 51-52, but 'best' was never defined, causing a NameError when running cells top-to-bottom. Fixed by assigning 'best = running_min.iloc[-1]' which is already computed earlier in the same cell.

IgorTavcar added a commit to IgorTavcar/autoresearch that referenced this pull request Mar 11, 2026
Cherry-picked from karpathy#166

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@svlandeg svlandeg added the bug Something isn't working label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants